package com.anxin.registerManagement.bean.persist;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel("回帖类")
@Data
@TableName(value = "reply_post_bar")
public class Reply {

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("帖子id")
    private Integer postBarId;

    @ApiModelProperty("回帖人id")
    private Integer replyUserId;

    @ApiModelProperty("回复内容")
    private String replyContent;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("创建时间")
    private Date createTime;

}
